python count number of digits program